package com.ruoyi.maintenance.service.impl;

import java.util.List;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.ruoyi.maintenance.mapper.DeviceMaintenanceMapper;
import com.ruoyi.maintenance.domain.DeviceMaintenance;
import com.ruoyi.maintenance.service.IDeviceMaintenanceService;

/**
 * 设备维修列表Service业务层处理
 * 
 * @author zjt
 * @date 2025-01-15
 */
@Service
public class DeviceMaintenanceServiceImpl implements IDeviceMaintenanceService 
{
    @Autowired
    private DeviceMaintenanceMapper deviceMaintenanceMapper;

    /**
     * 查询设备维修列表
     * 
     * @param maintenanceId 设备维修列表主键
     * @return 设备维修列表
     */
    @Override
    public DeviceMaintenance selectDeviceMaintenanceByMaintenanceId(Integer maintenanceId)
    {
        return deviceMaintenanceMapper.selectDeviceMaintenanceByMaintenanceId(maintenanceId);
    }

    /**
     * 查询设备维修列表列表
     * 
     * @param deviceMaintenance 设备维修列表
     * @return 设备维修列表
     */
    @Override
    public List<DeviceMaintenance> selectDeviceMaintenanceList(DeviceMaintenance deviceMaintenance)
    {
        return deviceMaintenanceMapper.selectDeviceMaintenanceList(deviceMaintenance);
    }

    /**
     * 新增设备维修列表
     * 
     * @param deviceMaintenance 设备维修列表
     * @return 结果
     */
    @Override
    public int insertDeviceMaintenance(DeviceMaintenance deviceMaintenance)
    {
        return deviceMaintenanceMapper.insertDeviceMaintenance(deviceMaintenance);
    }

    /**
     * 修改设备维修列表
     * 
     * @param deviceMaintenance 设备维修列表
     * @return 结果
     */
    @Override
    public int updateDeviceMaintenance(DeviceMaintenance deviceMaintenance)
    {
        return deviceMaintenanceMapper.updateDeviceMaintenance(deviceMaintenance);
    }

    /**
     * 批量删除设备维修列表
     * 
     * @param maintenanceIds 需要删除的设备维修列表主键
     * @return 结果
     */
    @Override
    public int deleteDeviceMaintenanceByMaintenanceIds(Integer[] maintenanceIds)
    {
        return deviceMaintenanceMapper.deleteDeviceMaintenanceByMaintenanceIds(maintenanceIds);
    }

    /**
     * 删除设备维修列表信息
     * 
     * @param maintenanceId 设备维修列表主键
     * @return 结果
     */
    @Override
    public int deleteDeviceMaintenanceByMaintenanceId(Integer maintenanceId)
    {
        return deviceMaintenanceMapper.deleteDeviceMaintenanceByMaintenanceId(maintenanceId);
    }
}
